import {addListener, removeListener} from "./utils";

export default {
    bind() {
        const {viewer} = this
        addListener(viewer, 'click', (this.onClick = this.click.bind(this)))
    },
    unbind() {
        const {viewer} = this
        removeListener(viewer, 'click', this.onClick)
    }
}
